<template>
  <div class="swiper">
    <van-swipe
      :autoplay="3000"
      class="my-swipe"
      indicator-color="white"
    >
      <!-- 图片懒加载 -->
      <van-swipe-item
        v-for="el in swipers"
        :key="el.id"
      >
        <img v-lazy="el.src || el.img" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
<script>
export default {
  props: ['swipers'],
  data: () => ({})
}
</script>